package com.woniu.controller.homepage;

import com.woniu.entity.Orders;
import com.woniu.service.homePage.IOrdersTwoService;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 周权
 * @data 2023/3/14 9:09
 */
@RestController
@RequestMapping("/app")
public class OrdersTwoController {
    @Autowired
    IOrdersTwoService ordersTwoService;

    @RequestMapping("/updatePaySuccess")
    public ResData<?> updateOrders(@RequestBody Orders orders) {
        return ordersTwoService.updateOrders(orders);
    }
    @RequestMapping("/deleteOrdersById")
    public ResData<?> deleteOrdersById(String id){
        return ordersTwoService.deleteOrdersById(id);
    }
}
